import java.util.ArrayList;

/*
 * Created by Jesse Phillips
 * Created on 14-Jan-06
 */

public class ShapeException extends Exception{
	private String shapeName, error;
	private ArrayList<Double> values;
	
	public ShapeException() {
		super("Invalid TwoDShape");
	}
	
	public ShapeException(String shapeName, String error, ArrayList<Double> values) {
		super("Invalid "+shapeName);
		
		this.shapeName = shapeName;
		this.error = error;
		this.values = values;
	}
	
	public String getShapeName() {
		return shapeName;
	}
	
	public String getError() {
		return error;
	}
	
	public String getValues() {
		String result = "";
		
		for(int i = 0; i < values.size(); i++)
			result += values.get(i)+", ";
		
		return result;
	}
}
